package br.com.mtg.movethegarbage.framework;

import android.app.Activity;
import android.content.res.AssetManager;
import android.media.AudioManager;
import android.media.SoundPool;

public abstract class Audio
{
	protected AssetManager assetManager;
	protected SoundPool pool;
	public boolean soundEnabled;

	public Audio(Activity activity)
	{
		assetManager = activity.getAssets();
		pool = new SoundPool(20, AudioManager.STREAM_MUSIC, 0);
	}

	public abstract Sound newSound(String fileName);

	public abstract Music newMusic(String fileName);

	public abstract void playSound(Sound sound, float volume);

	public abstract void playMusic(Music music);
}
